#include <stdio.h>
#include "mathutils.h"

#define HYPHEN '-'

int main() {
    const char list[16] = "0123456789abcdef";
    seedRandomWithTime();
    char result[33];
    for (unsigned int i = 0; i < 32; i++) {
        result[i] = list[randomIntWithMax(16)];
    }

    // 01234567890123456789012345678901
    // |     0  ||    1   ||    2    ||3        
    // 01234567-9012-4567-9012-456789012345

    char result1[37];
    for (unsigned int i = 0; i < 8; i++) {
        result1[i] = result[i];
    }
    result1[8] = HYPHEN;

    for (unsigned int i = 9; i < 13; i++)  {
        result1[i] = result[i - 1];
    }
    result1[13] = HYPHEN;

    for (unsigned int i = 14; i < 18; i++) {
        result1[i] = result[i - 2];
    }
    result1[18] = HYPHEN;

    for (unsigned int i = 19; i < 23; i++) {
        result1[i] = result[i - 3];
    }
    result1[23] = HYPHEN;

    for (unsigned int i = 24; i < 36; i++) {
        result1[i] = result[i - 4];
    }

    printf("%s\n%s\n", result, result1);
    return 0;
}